<?php

use Monolog\Handler\NullHandler;
use Monolog\Handler\StreamHandler;
use Monolog\Handler\SyslogUdpHandler;

return [
    'default' => env('LOG_CHANNEL', 'stack'),

    'channels' => [
        'stack' => [
            'driver' => 'stack',
            'channels' => ['daily_info', 'daily_error'],
        ],

        'daily_info' => [
            'driver' => 'daily',
            'path' => storage_path('logs/info/lumen-info.log'),
            'level' => 'info',
            'days' => 14,
        ],

        'daily_error' => [
            'driver' => 'daily',
            'path' => storage_path('logs/error/lumen-error.log'),
            'level' => 'error',
            'days' => 30,
        ],

        'emergency' => [
            'path' => storage_path('logs/emergency/lumen-emergency.log'),
        ],
    ],
];